summaryrefslogtreecommitdiff
path: root/app/[lng]/procurement/(procurement)/report/page.tsx
diff options
context:
space:
mode:
authorjoonhoekim <26rote@gmail.com>2025-08-12 09:51:10 +0000
committerjoonhoekim <26rote@gmail.com>2025-08-12 09:51:10 +0000
commit2ac95090157c355ea1bd0b8eb1e1e5e2bd56faf4 (patch)
tree776c2033701f77e653713f4e98fa78963ea214df /app/[lng]/procurement/(procurement)/report/page.tsx
parent58dd81f6208199791e7451a1cb239f23bcd0a20f (diff)
(김준회) pre-render dynamic error 처리 (동적렌더링 선언)
Diffstat (limited to 'app/[lng]/procurement/(procurement)/report/page.tsx')
-rw-r--r--app/[lng]/procurement/(procurement)/report/page.tsx5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/[lng]/procurement/(procurement)/report/page.tsx b/app/[lng]/procurement/(procurement)/report/page.tsx
index adeb31aa..2782c3ac 100644
--- a/app/[lng]/procurement/(procurement)/report/page.tsx
+++ b/app/[lng]/procurement/(procurement)/report/page.tsx
@@ -5,6 +5,11 @@ import { ErrorBoundary } from "@/components/error-boundary";
import { getDashboardData } from "@/lib/dashboard/service";
import { DashboardClient } from "@/lib/dashboard/dashboard-client";
+// 데이터 fetch 시 비동기 함수 호출 후 await 하므로 static-pre-render 과정에서 dynamic-server-error 발생.
+// 따라서, dynamic 속성을 force-dynamic 으로 설정하여 동적 렌더링 처리
+// getDashboardData 함수에 대한 Promise를 넘기는 식으로 수정하게 되면 force-dynamic 선언을 제거해도 됨.
+export const dynamic = 'force-dynamic'
+
export default async function IndexPage() {
// domain을 명시적으로 전달
const domain = "procurement";